%generates a vector with the name of the files to process. The full path is
%included.
%Created by Ricardo Mejia-Alvarez. Urbana, IL. 07/16/08
%folData : path where the data is located.
%namestart : starting name of files to process

function [pathFiles] = filesVector(folData,namekey)

if ispc == 1
pathFiles = strcat(folData,'\',namekey);
else
    pathFiles = strcat(folData,'/',namekey);
end

pathFiles = dir(pathFiles);
pathFiles = {pathFiles(:).name}';
path(1:length(pathFiles)) = cellstr(folData);
pathFiles = [char(path'),char(pathFiles)];
pathFiles = cellstr(pathFiles);

end